﻿namespace Sidvall.CodeGenerator
{
    public class Constraint
    {
        #region Public Members

        public string Name { get; set; }
        public DomainObjectPropertyCollection Properties { get; private set; }

        #region Import

        public void Import(Constraint item)
        {
            this.Name = item.Name;
            this.Properties.Import(item.Properties);
        }

        #endregion

        #endregion
        #region Constructors

        public Constraint()
        {
            this.Properties = new DomainObjectPropertyCollection();
        }

        #endregion
    }
}
